package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

import com.example.datasource.DynamicDataSourceRegister;

@MapperScan("com.example.mapper")   
@SpringBootApplication
@Import({DynamicDataSourceRegister.class}) // 注册动态多数据源
@EnableWebSecurity		//启动web安全
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
}
